package la.bbs558.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
/**
 * 帖子
(UserRole)表实体类
 *
 * @author weihanmin
 * @since 2023-12-18 15:26:55
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class UserRole extends Model<UserRole> {
    
    /**
     * 主键id
     */
    private Long id;
    
    /**
     * 登录名
     */
    private Long userId;
    
    /**
     * 角色ids
     */
    private String roleIds;
    
    /**
     * 创建时间
     */
    private Date createTime;
    

    //获取主键值
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
